package com.learn.bus;

/**
 * <p>项目名称: design-pattern </p>
 *
 * <p>文件名称: AbstractData </p>
 *
 * Base for data to send via the Data-Bus.
 */
public class AbstractData implements Data {

    private DataBus dataBus;

    @Override
    public void setDataBus(DataBus dataBus) {
        this.dataBus = dataBus;
    }

    @Override
    public DataBus getDataBus() {
        return dataBus;
    }
}
